function handles = setAsDefault(handles)
% setAsDefault
% 
% Editing:
% gs may 2005
% --------------------------------------------

ROI.colROIfirstRow = str2double(get(handles.colROIfirstRow,'String'));
ROI.colROIlastRow = str2double(get(handles.colROIlastRow,'String'));
ROI.colROIfirstCol = str2double(get(handles.colROIfirstCol,'String'));
ROI.colROIlastCol = str2double(get(handles.colROIlastCol,'String'));

ROI.rowROIfirstRow = str2double(get(handles.rowROIfirstRow,'String'));
ROI.rowROIlastRow = str2double(get(handles.rowROIlastRow,'String'));
ROI.rowROIfirstCol = str2double(get(handles.rowROIfirstCol,'String'));
ROI.rowROIlastCol = str2double(get(handles.rowROIlastCol,'String'));

ROI.allROIfirstRow = str2double(get(handles.allROIfirstRow,'String'));
ROI.allROIlastRow = str2double(get(handles.allROIlastRow,'String'));
ROI.allROIfirstCol = str2double(get(handles.allROIfirstCol,'String'));
ROI.allROIlastCol = str2double(get(handles.allROIlastCol,'String'));

S = which('private/setAsDefault');
[pathname, filename, extname] = fileparts(S);
savefile = [pathname '\savedROI'];
save(savefile, 'ROI');